(function(t,e,n,i){"use strict";if(!n){return}if(n.fn.fancybox){if("console"in t){console.log("fancyBox already initialized")}return}var o={loop:false,margin:[44,0],gutter:50,keyboard:true,arrows:true,infobar:true,toolbar:true,buttons:["slideShow","fullScreen","thumbs","share","close"],idleTime:3,smallBtn:"auto",protect:false,modal:false,image:{preload:"auto"},ajax:{settings:{data:{fancybox:true}}},iframe:{tpl:'<iframe id="fancybox-frame{rnd}" name="fancybox-frame{rnd}" class="fancybox-iframe" frameborder="0" vspace="0" hspace="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen allowtransparency="true" src=""></iframe>',preload:true,css:{},attr:{scrolling:"auto"}},defaultType:"image",animationEffect:"zoom",animationDuration:500,zoomOpacity:"auto",transitionEffect:"fade",transitionDuration:366,slideClass:"",baseClass:"",baseTpl:'<div class="fancybox-container" role="dialog" tabindex="-1">'+'<div class="fancybox-bg"></div>'+'<div class="fancybox-inner">'+'<div class="fancybox-infobar">'+"<span data-fancybox-index></span>&nbsp;/&nbsp;<span data-fancybox-count></span>"+"</div>"+'<div class="fancybox-toolbar">{{buttons}}</div>'+'<div class="fancybox-navigation">{{arrows}}</div>'+'<div class="fancybox-stage"></div>'+'<div class="fancybox-caption-wrap"><div class="fancybox-caption"></div></div>'+"</div>"+"</div>",spinnerTpl:'<div class="fancybox-loading"></div>',errorTpl:'<div class="fancybox-error"><p>{{ERROR}}<p></div>',btnTpl:{download:'<a download data-fancybox-download class="fancybox-button fancybox-button--download" title="{{DOWNLOAD}}">'+'<svg viewBox="0 0 40 40">'+'<path d="M20,23 L20,8 L20,23 L13,16 L20,23 L27,16 L20,23 M26,28 L13,28 L27,28 L14,28" />'+"</svg>"+"</a>",zoom:'<button data-fancybox-zoom class="fancybox-button fancybox-button--zoom" title="{{ZOOM}}">'+'<svg viewBox="0 0 40 40">'+'<path d="M 18,17 m-8,0 a 8,8 0 1,0 16,0 a 8,8 0 1,0 -16,0 M25,23 L31,29 L25,23" />'+"</svg>"+"</button>",close:'<button data-fancybox-close class="fancybox-button fancybox-button--close" title="{{CLOSE}}">'+'<svg viewBox="0 0 40 40">'+'<path d="M10,10 L30,30 M30,10 L10,30" />'+"</svg>"+"</button>",smallBtn:'<button data-fancybox-close class="fancybox-close-small" title="{{CLOSE}}"></button>',arrowLeft:'<button data-fancybox-prev class="fancybox-button fancybox-button--arrow_left" title="{{PREV}}">'+'<svg viewBox="0 0 40 40">'+'<path d="M10,20 L30,20 L10,20 L18,28 L10,20 L18,12 L10,20"></path>'+"</svg>"+"</button>",arrowRight:'<button data-fancybox-next class="fancybox-button fancybox-button--arrow_right" title="{{NEXT}}">'+'<svg viewBox="0 0 40 40">'+'<path d="M30,20 L10,20 L30,20 L22,28 L30,20 L22,12 L30,20"></path>'+"</svg>"+"</button>"},parentEl:"body",autoFocus:false,backFocus:true,trapFocus:true,fullScreen:{autoStart:false},touch:{vertical:true,momentum:true},hash:null,media:{},slideShow:{autoStart:false,speed:4e3},thumbs:{autoStart:false,hideOnClose:true,parentEl:".fancybox-container",axis:"y"},onInit:n.noop,beforeLoad:n.noop,afterLoad:n.noop,beforeShow:n.noop,afterShow:n.noop,beforeClose:n.noop,afterClose:n.noop,onActivate:n.noop,onDeactivate:n.noop,clickContent:function(t,e){return t.type==="image"?"zoom":false},clickSlide:"close",clickOutside:"close",dblclickContent:false,dblclickSlide:false,dblclickOutside:false,mobile:{margin:0,clickContent:function(t,e){return t.type==="image"?"toggleControls":false},clickSlide:function(t,e){return t.type==="image"?"toggleControls":"close"},dblclickContent:function(t,e){return t.type==="image"?"zoom":false},dblclickSlide:function(t,e){return t.type==="image"?"zoom":false}},lang:"en",i18n:{en:{CLOSE:"Close",NEXT:"Next",PREV:"Previous",ERROR:"The requested content cannot be loaded. <br/> Please try again later.",PLAY_START:"Start slideshow",PLAY_STOP:"Pause slideshow",FULL_SCREEN:"Full screen",THUMBS:"Thumbnails",DOWNLOAD:"Download",SHARE:"Share",ZOOM:"Zoom"},de:{CLOSE:"Schliessen",NEXT:"Weiter",PREV:"Zur\xfcck",ERROR:"Die angeforderten Daten konnten nicht geladen werden. <br/> Bitte versuchen Sie es sp\xe4ter nochmal.",PLAY_START:"Diaschau starten",PLAY_STOP:"Diaschau beenden",FULL_SCREEN:"Vollbild",THUMBS:"Vorschaubilder",DOWNLOAD:"Herunterladen",SHARE:"Teilen",ZOOM:"Ma\xdfstab"}}};var a=n(t);var s=n(e);var r=0;var l=function(t){return t&&t.hasOwnProperty&&t instanceof n};var c=function(){return t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.oRequestAnimationFrame||function(e){return t.setTimeout(e,1e3/60)}}();var f=function(){var t,n=e.createElement("fakeelement");var o={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};for(t in o){if(n.style[t]!==i){return o[t]}}return"transitionend"}();var u=function(t){return t&&t.length&&t[0].offsetHeight};var d=function(t,i,o){var a=this;a.opts=n.extend(true,{index:o},n.fancybox.defaults,i||{});if(n.fancybox.isMobile){a.opts=n.extend(true,{},a.opts,a.opts.mobile)}if(i&&n.isArray(i.buttons)){a.opts.buttons=i.buttons}a.id=a.opts.id||++r;a.group=[];a.currIndex=parseInt(a.opts.index,10)||0;a.prevIndex=null;a.prevPos=null;a.currPos=0;a.firstRun=null;a.createGroup(t);if(!a.group.length){return}a.$lastFocus=n(e.activeElement).blur();a.slides={};a.init()};n.extend(d.prototype,{init:function(){var o=this,a=o.group[o.currIndex],r=a.opts,l=n.fancybox.scrollbarWidth,c,f,u;o.scrollTop=s.scrollTop();o.scrollLeft=s.scrollLeft();if(!n.fancybox.getInstance()){n("body").addClass("fancybox-active");if(/iPad|iPhone|iPod/.test(navigator.userAgent)&&!t.MSStream){if(a.type!=="image"){n("body").css("top",n("body").scrollTop()*-1).addClass("fancybox-iosfix")}}else if(!n.fancybox.isMobile&&e.body.scrollHeight>t.innerHeight){if(l===i){c=n('<div style="width:50px;height:50px;overflow:scroll;" />').appendTo("body");l=n.fancybox.scrollbarWidth=c[0].offsetWidth-c[0].clientWidth;c.remove()}n("head").append('<style id="fancybox-style-noscroll" type="text/css">.compensate-for-scrollbar { margin-right: '+l+"px; }</style>");n("body").addClass("compensate-for-scrollbar")}}u="";n.each(r.buttons,(function(t,e){u+=r.btnTpl[e]||""}));f=n(o.translate(o,r.baseTpl.replace("{{buttons}}",u).replace("{{arrows}}",r.btnTpl.arrowLeft+r.btnTpl.arrowRight))).attr("id","fancybox-container-"+o.id).addClass("fancybox-is-hidden").addClass(r.baseClass).data("FancyBox",o).appendTo(r.parentEl);o.$refs={container:f};["bg","inner","infobar","toolbar","stage","caption","navigation"].forEach((function(t){o.$refs[t]=f.find(".fancybox-"+t)}));o.trigger("onInit");o.activate();o.jumpTo(o.currIndex)},translate:function(t,e){var n=t.opts.i18n[t.opts.lang];return e.replace(/\{\{(\w+)\}\}/g,(function(t,e){var o=n[e];if(o===i){return t}return o}))},createGroup:function(t){var e=this;var o=n.makeArray(t);n.each(o,(function(t,o){var a={},s={},r,l,c,f;if(n.isPlainObject(o)){a=o;s=o.opts||o}else if(n.type(o)==="object"&&n(o).length){r=n(o);s=r.data();s=n.extend({},s,s.options||{});s.$orig=r;a.src=s.src||r.attr("href");if(!a.type&&!a.src){a.type="inline";a.src=o}}else{a={type:"html",src:o+""}}a.opts=n.extend(true,{},e.opts,s);if(n.isArray(s.buttons)){a.opts.buttons=s.buttons}l=a.type||a.opts.type;c=a.src||"";if(!l&&c){if(c.match(/(^data:image\/[a-z0-9+\/=]*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg|ico)((\?|#).*)?$)/i)){l="image"}else if(c.match(/\.(pdf)((\?|#).*)?$/i)){l="pdf"}else if(c.charAt(0)==="#"){l="inline"}}if(l){a.type=l}else{e.trigger("objectNeedsType",a)}a.index=e.group.length;if(a.opts.$orig&&!a.opts.$orig.length){delete a.opts.$orig}if(!a.opts.$thumb&&a.opts.$orig){a.opts.$thumb=a.opts.$orig.find("img:first")}if(a.opts.$thumb&&!a.opts.$thumb.length){delete a.opts.$thumb}if(n.type(a.opts.caption)==="function"){a.opts.caption=a.opts.caption.apply(o,[e,a])}if(n.type(e.opts.caption)==="function"){a.opts.caption=e.opts.caption.apply(o,[e,a])}if(!(a.opts.caption instanceof n)){a.opts.caption=a.opts.caption===i?"":a.opts.caption+""}if(l==="ajax"){f=c.split(/\s+/,2);if(f.length>1){a.src=f.shift();a.opts.filter=f.shift()}}if(a.opts.smallBtn=="auto"){if(n.inArray(l,["html","inline","ajax"])>-1){a.opts.toolbar=false;a.opts.smallBtn=true}else{a.opts.smallBtn=false}}if(l==="pdf"){a.type="iframe";a.opts.iframe.preload=false}if(a.opts.modal){a.opts=n.extend(true,a.opts,{infobar:0,toolbar:0,smallBtn:0,keyboard:0,slideShow:0,fullScreen:0,thumbs:0,touch:0,clickContent:false,clickSlide:false,clickOutside:false,dblclickContent:false,dblclickSlide:false,dblclickOutside:false})}e.group.push(a)}))},addEvents:function(){var i=this;i.removeEvents();i.$refs.container.on("click.fb-close","[data-fancybox-close]",(function(t){t.stopPropagation();t.preventDefault();i.close(t)})).on("click.fb-prev touchend.fb-prev","[data-fancybox-prev]",(function(t){t.stopPropagation();t.preventDefault();i.previous()})).on("click.fb-next touchend.fb-next","[data-fancybox-next]",(function(t){t.stopPropagation();t.preventDefault();i.next()})).on("click.fb","[data-fancybox-zoom]",(function(t){i[i.isScaledDown()?"scaleToActual":"scaleToFit"]()}));a.on("orientationchange.fb resize.fb",(function(t){if(t&&t.originalEvent&&t.originalEvent.type==="resize"){c((function(){i.update()}))}else{i.$refs.stage.hide();setTimeout((function(){i.$refs.stage.show();i.update()}),600)}}));s.on("focusin.fb",(function(t){var o=n.fancybox?n.fancybox.getInstance():null;if(o.isClosing||!o.current||!o.current.opts.trapFocus||n(t.target).hasClass("fancybox-container")||n(t.target).is(e)){return}if(o&&n(t.target).css("position")!=="fixed"&&!o.$refs.container.has(t.target).length){t.stopPropagation();o.focus();a.scrollTop(i.scrollTop).scrollLeft(i.scrollLeft)}}));s.on("keydown.fb",(function(t){var e=i.current,o=t.keyCode||t.which;if(!e||!e.opts.keyboard){return}if(n(t.target).is("input")||n(t.target).is("textarea")){return}if(o===8||o===27){t.preventDefault();i.close(t);return}if(o===37||o===38){t.preventDefault();i.previous();return}if(o===39||o===40){t.preventDefault();i.next();return}i.trigger("afterKeydown",t,o)}));if(i.group[i.currIndex].opts.idleTime){i.idleSecondsCounter=0;s.on("mousemove.fb-idle mouseleave.fb-idle mousedown.fb-idle touchstart.fb-idle touchmove.fb-idle scroll.fb-idle keydown.fb-idle",(function(t){i.idleSecondsCounter=0;if(i.isIdle){i.showControls()}i.isIdle=false}));i.idleInterval=t.setInterval((function(){i.idleSecondsCounter++;if(i.idleSecondsCounter>=i.group[i.currIndex].opts.idleTime){i.isIdle=true;i.idleSecondsCounter=0;i.hideControls()}}),1e3)}},removeEvents:function(){var e=this;a.off("orientationchange.fb resize.fb");s.off("focusin.fb keydown.fb .fb-idle");this.$refs.container.off(".fb-close .fb-prev .fb-next");if(e.idleInterval){t.clearInterval(e.idleInterval);e.idleInterval=null}},previous:function(t){return this.jumpTo(this.currPos-1,t)},next:function(t){return this.jumpTo(this.currPos+1,t)},jumpTo:function(t,e,o){var a=this,s,r,l,c,f,d,p;var h=a.group.length;if(a.isSliding||a.isClosing||a.isAnimating&&a.firstRun){return}t=parseInt(t,10);r=a.current?a.current.opts.loop:a.opts.loop;if(!r&&(t<0||t>=h)){return false}s=a.firstRun=a.firstRun===null;if(h<2&&!s&&!!a.isSliding){return}c=a.current;a.prevIndex=a.currIndex;a.prevPos=a.currPos;l=a.createSlide(t);if(h>1){if(r||l.index>0){a.createSlide(t-1)}if(r||l.index<h-1){a.createSlide(t+1)}}a.current=l;a.currIndex=l.index;a.currPos=l.pos;a.trigger("beforeShow",s);a.updateControls();d=n.fancybox.getTranslate(l.$slide);l.isMoved=(d.left!==0||d.top!==0)&&!l.$slide.hasClass("fancybox-animated");l.forcedDuration=i;if(n.isNumeric(e)){l.forcedDuration=e}else{e=l.opts[s?"animationDuration":"transitionDuration"]}e=parseInt(e,10);if(s){if(l.opts.animationEffect&&e){a.$refs.container.css("transition-duration",e+"ms")}a.$refs.container.removeClass("fancybox-is-hidden");u(a.$refs.container);a.$refs.container.addClass("fancybox-is-open");l.$slide.addClass("fancybox-slide--current");a.loadSlide(l);a.preload();return}n.each(a.slides,(function(t,e){n.fancybox.stop(e.$slide)}));l.$slide.removeClass("fancybox-slide--next fancybox-slide--previous").addClass("fancybox-slide--current");if(l.isMoved){f=Math.round(l.$slide.width());n.each(a.slides,(function(t,i){var o=i.pos-l.pos;n.fancybox.animate(i.$slide,{top:0,left:o*f+o*i.opts.gutter},e,(function(){i.$slide.removeAttr("style").removeClass("fancybox-slide--next fancybox-slide--previous");if(i.pos===a.currPos){l.isMoved=false;a.complete()}}))}))}else{a.$refs.stage.children().removeAttr("style")}if(l.isLoaded){a.revealContent(l)}else{a.loadSlide(l)}a.preload();if(c.pos===l.pos){return}p="fancybox-slide--"+(c.pos>l.pos?"next":"previous");c.$slide.removeClass("fancybox-slide--complete fancybox-slide--current fancybox-slide--next fancybox-slide--previous");c.isComplete=false;if(!e||!l.isMoved&&!l.opts.transitionEffect){return}if(l.isMoved){c.$slide.addClass(p)}else{p="fancybox-animated "+p+" fancybox-fx-"+l.opts.transitionEffect;n.fancybox.animate(c.$slide,p,e,(function(){c.$slide.removeClass(p).removeAttr("style")}))}},createSlide:function(t){var e=this;var i;var o;o=t%e.group.length;o=o<0?e.group.length+o:o;if(!e.slides[t]&&e.group[o]){i=n('<div class="fancybox-slide"></div>').appendTo(e.$refs.stage);e.slides[t]=n.extend(true,{},e.group[o],{pos:t,$slide:i,isLoaded:false});e.updateSlide(e.slides[t])}return e.slides[t]},scaleToActual:function(t,e,o){var a=this;var s=a.current;var r=s.$content;var l,c,f,u,d;var p=parseInt(s.$slide.width(),10);var h=parseInt(s.$slide.height(),10);var g=s.width;var b=s.height;if(!(s.type=="image"&&!s.hasError)||!r||a.isAnimating){return}n.fancybox.stop(r);a.isAnimating=true;t=t===i?p*.5:t;e=e===i?h*.5:e;l=n.fancybox.getTranslate(r);u=g/l.width;d=b/l.height;c=p*.5-g*.5;f=h*.5-b*.5;if(g>p){c=l.left*u-(t*u-t);if(c>0){c=0}if(c<p-g){c=p-g}}if(b>h){f=l.top*d-(e*d-e);if(f>0){f=0}if(f<h-b){f=h-b}}a.updateCursor(g,b);n.fancybox.animate(r,{top:f,left:c,scaleX:u,scaleY:d},o||330,(function(){a.isAnimating=false}));if(a.SlideShow&&a.SlideShow.isActive){a.SlideShow.stop()}},scaleToFit:function(t){var e=this;var i=e.current;var o=i.$content;var a;if(!(i.type=="image"&&!i.hasError)||!o||e.isAnimating){return}n.fancybox.stop(o);e.isAnimating=true;a=e.getFitPos(i);e.updateCursor(a.width,a.height);n.fancybox.animate(o,{top:a.top,left:a.left,scaleX:a.width/o.width(),scaleY:a.height/o.height()},t||330,(function(){e.isAnimating=false}))},getFitPos:function(t){var e=this;var i=t.$content;var o=t.width;var a=t.height;var s=t.opts.margin;var r,l,c,f,u;if(!i||!i.length||!o&&!a){return false}if(n.type(s)==="number"){s=[s,s]}if(s.length==2){s=[s[0],s[1],s[0],s[1]]}r=parseInt(e.$refs.stage.width(),10)-(s[1]+s[3]);l=parseInt(e.$refs.stage.height(),10)-(s[0]+s[2]);c=Math.min(1,r/o,l/a);f=Math.floor(c*o);u=Math.floor(c*a);return{top:Math.floor((l-u)*.5)+s[0],left:Math.floor((r-f)*.5)+s[3],width:f,height:u}},update:function(){var t=this;n.each(t.slides,(function(e,n){t.updateSlide(n)}))},updateSlide:function(t){var e=this;var i=t.$content;if(i&&(t.width||t.height)){e.isAnimating=false;n.fancybox.stop(i);n.fancybox.setTranslate(i,e.getFitPos(t));if(t.pos===e.currPos){e.updateCursor()}}t.$slide.trigger("refresh");e.trigger("onUpdate",t)},updateCursor:function(t,e){var n=this;var o;var a=n.$refs.container.removeClass("fancybox-is-zoomable fancybox-can-zoomIn fancybox-can-drag fancybox-can-zoomOut");if(!n.current||n.isClosing){return}if(n.isZoomable()){a.addClass("fancybox-is-zoomable");if(t!==i&&e!==i){o=t<n.current.width&&e<n.current.height}else{o=n.isScaledDown()}if(o){a.addClass("fancybox-can-zoomIn")}else{if(n.current.opts.touch){a.addClass("fancybox-can-drag")}else{a.addClass("fancybox-can-zoomOut")}}}else if(n.current.opts.touch){a.addClass("fancybox-can-drag")}},isZoomable:function(){var t=this;var e=t.current;var i;if(!e||t.isClosing){return}if(e.type==="image"&&e.isLoaded&&!e.hasError&&(e.opts.clickContent==="zoom"||n.isFunction(e.opts.clickContent)&&e.opts.clickContent(e)==="zoom")){i=t.getFitPos(e);if(e.width>i.width||e.height>i.height){return true}}return false},isScaledDown:function(){var t=this;var e=t.current;var i=e.$content;var o=false;if(i){o=n.fancybox.getTranslate(i);o=o.width<e.width||o.height<e.height}return o},canPan:function(){var t=this;var e=t.current;var n=e.$content;var i=false;if(n){i=t.getFitPos(e);i=Math.abs(n.width()-i.width)>1||Math.abs(n.height()-i.height)>1}return i},loadSlide:function(t){var e=this,i,o;var a;if(t.isLoading){return}if(t.isLoaded){return}t.isLoading=true;e.trigger("beforeLoad",t);i=t.type;o=t.$slide;o.off("refresh").trigger("onReset").addClass("fancybox-slide--"+(i||"unknown")).addClass(t.opts.slideClass);switch(i){case"image":e.setImage(t);break;case"iframe":e.setIframe(t);break;case"html":e.setContent(t,t.src||t.content);break;case"inline":if(n(t.src).length){e.setContent(t,n(t.src))}else{e.setError(t)}break;case"ajax":e.showLoading(t);a=n.ajax(n.extend({},t.opts.ajax.settings,{url:t.src,success:function(n,i){if(i==="success"){e.setContent(t,n)}},error:function(n,i){if(n&&i!=="abort"){e.setError(t)}}}));o.one("onReset",(function(){a.abort()}));break;default:e.setError(t);break}return true},setImage:function(e){var i=this;var o=e.opts.srcset||e.opts.image.srcset;var a,s,r,l;if(o){r=t.devicePixelRatio||1;l=t.innerWidth*r;s=o.split(",").map((function(t){var e={};t.trim().split(/\s+/).forEach((function(t,n){var i=parseInt(t.substring(0,t.length-1),10);if(n===0){return e.url=t}if(i){e.value=i;e.postfix=t[t.length-1]}}));return e}));s.sort((function(t,e){return t.value-e.value}));for(var c=0;c<s.length;c++){var f=s[c];if(f.postfix==="w"&&f.value>=l||f.postfix==="x"&&f.value>=r){a=f;break}}if(!a&&s.length){a=s[s.length-1]}if(a){e.src=a.url;if(e.width&&e.height&&a.postfix=="w"){e.height=e.width/e.height*a.value;e.width=a.value}}}e.$content=n('<div class="fancybox-image-wrap"></div>').addClass("fancybox-is-hidden").appendTo(e.$slide);if(e.opts.preload!==false&&e.opts.width&&e.opts.height&&(e.opts.thumb||e.opts.$thumb)){e.width=e.opts.width;e.height=e.opts.height;e.$ghost=n("<img />").one("error",(function(){n(this).remove();e.$ghost=null;i.setBigImage(e)})).one("load",(function(){i.afterLoad(e);i.setBigImage(e)})).addClass("fancybox-image").appendTo(e.$content).attr("src",e.opts.thumb||e.opts.$thumb.attr("src"))}else{i.setBigImage(e)}},setBigImage:function(t){var e=this;var i=n("<img />");t.$image=i.one("error",(function(){e.setError(t)})).one("load",(function(){clearTimeout(t.timouts);t.timouts=null;if(e.isClosing){return}t.width=this.naturalWidth;t.height=this.naturalHeight;if(t.opts.image.srcset){i.attr("sizes","100vw").attr("srcset",t.opts.image.srcset)}e.hideLoading(t);if(t.$ghost){t.timouts=setTimeout((function(){t.timouts=null;t.$ghost.hide()}),Math.min(300,Math.max(1e3,t.height/1600)))}else{e.afterLoad(t)}})).addClass("fancybox-image").attr("src",t.src).appendTo(t.$content);if((i[0].complete||i[0].readyState=="complete")&&i[0].naturalWidth&&i[0].naturalHeight){i.trigger("load")}else if(i[0].error){i.trigger("error")}else{t.timouts=setTimeout((function(){if(!i[0].complete&&!t.hasError){e.showLoading(t)}}),100)}},setIframe:function(t){var e=this,o=t.opts.iframe,a=t.$slide,s;t.$content=n('<div class="fancybox-content'+(o.preload?" fancybox-is-hidden":"")+'"></div>').css(o.css).appendTo(a);s=n(o.tpl.replace(/\{rnd\}/g,(new Date).getTime())).attr(o.attr).appendTo(t.$content);if(o.preload){e.showLoading(t);s.on("load.fb error.fb",(function(n){this.isReady=1;t.$slide.trigger("refresh");e.afterLoad(t)}));a.on("refresh.fb",(function(){var e=t.$content,n=o.css.width,a=o.css.height,r,l,c;if(s[0].isReady!==1){return}try{l=s.contents();c=l.find("body")}catch(t){}if(c&&c.length){if(n===i){r=s[0].contentWindow.document.documentElement.scrollWidth;n=Math.ceil(c.outerWidth(true)+(e.width()-r));n+=e.outerWidth()-e.innerWidth()}if(a===i){a=Math.ceil(c.outerHeight(true));a+=e.outerHeight()-e.innerHeight()}if(n){e.width(n)}if(a){e.height(a)}}e.removeClass("fancybox-is-hidden")}))}else{this.afterLoad(t)}s.attr("src",t.src);if(t.opts.smallBtn===true){t.$content.prepend(e.translate(t,t.opts.btnTpl.smallBtn))}a.one("onReset",(function(){try{n(this).find("iframe").hide().attr("src","//about:blank")}catch(t){}n(this).empty();t.isLoaded=false}))},setContent:function(t,e){var i=this;if(i.isClosing){return}i.hideLoading(t);t.$slide.empty();if(l(e)&&e.parent().length){e.parent(".fancybox-slide--inline").trigger("onReset");t.$placeholder=n("<div></div>").hide().insertAfter(e);e.css("display","inline-block")}else if(!t.hasError){if(n.type(e)==="string"){e=n("<div>").append(n.trim(e)).contents();if(e[0].nodeType===3){e=n("<div>").html(e)}}if(t.opts.filter){e=n("<div>").html(e).find(t.opts.filter)}}t.$slide.one("onReset",(function(){if(t.$placeholder){t.$placeholder.after(e.hide()).remove();t.$placeholder=null}if(t.$smallBtn){t.$smallBtn.remove();t.$smallBtn=null}if(!t.hasError){n(this).empty();t.isLoaded=false}}));t.$content=n(e).appendTo(t.$slide);this.afterLoad(t)},setError:function(t){t.hasError=true;t.$slide.removeClass("fancybox-slide--"+t.type);this.setContent(t,this.translate(t,t.opts.errorTpl))},showLoading:function(t){var e=this;t=t||e.current;if(t&&!t.$spinner){t.$spinner=n(e.opts.spinnerTpl).appendTo(t.$slide)}},hideLoading:function(t){var e=this;t=t||e.current;if(t&&t.$spinner){t.$spinner.remove();delete t.$spinner}},afterLoad:function(t){var e=this;if(e.isClosing){return}t.isLoading=false;t.isLoaded=true;e.trigger("afterLoad",t);e.hideLoading(t);if(t.opts.smallBtn&&!t.$smallBtn){t.$smallBtn=n(e.translate(t,t.opts.btnTpl.smallBtn)).appendTo(t.$content.filter("div,form").first())}if(t.opts.protect&&t.$content&&!t.hasError){t.$content.on("contextmenu.fb",(function(t){if(t.button==2){t.preventDefault()}return true}));if(t.type==="image"){n('<div class="fancybox-spaceball"></div>').appendTo(t.$content)}}e.revealContent(t)},revealContent:function(t){var e=this;var o=t.$slide;var a,s,r,l,c,f=false;a=t.opts[e.firstRun?"animationEffect":"transitionEffect"];r=t.opts[e.firstRun?"animationDuration":"transitionDuration"];r=parseInt(t.forcedDuration===i?r:t.forcedDuration,10);if(t.isMoved||t.pos!==e.currPos||!r){a=false}if(a==="zoom"&&!(t.pos===e.currPos&&r&&t.type==="image"&&!t.hasError&&(f=e.getThumbPos(t)))){a="fade"}if(a==="zoom"){c=e.getFitPos(t);c.scaleX=c.width/f.width;c.scaleY=c.height/f.height;delete c.width;delete c.height;l=t.opts.zoomOpacity;if(l=="auto"){l=Math.abs(t.width/t.height-f.width/f.height)>.1}if(l){f.opacity=.1;c.opacity=1}n.fancybox.setTranslate(t.$content.removeClass("fancybox-is-hidden"),f);u(t.$content);n.fancybox.animate(t.$content,c,r,(function(){e.complete()}));return}e.updateSlide(t);if(!a){u(o);t.$content.removeClass("fancybox-is-hidden");if(t.pos===e.currPos){e.complete()}return}n.fancybox.stop(o);s="fancybox-animated fancybox-slide--"+(t.pos>=e.prevPos?"next":"previous")+" fancybox-fx-"+a;o.removeAttr("style").removeClass("fancybox-slide--current fancybox-slide--next fancybox-slide--previous").addClass(s);t.$content.removeClass("fancybox-is-hidden");u(o);n.fancybox.animate(o,"fancybox-slide--current",r,(function(n){o.removeClass(s).removeAttr("style");if(t.pos===e.currPos){e.complete()}}),true)},getThumbPos:function(i){var o=this;var a=false;var s=function(e){var i=e[0];var o=i.getBoundingClientRect();var a=[];var s;while(i.parentElement!==null){if(n(i.parentElement).css("overflow")==="hidden"||n(i.parentElement).css("overflow")==="auto"){a.push(i.parentElement.getBoundingClientRect())}i=i.parentElement}s=a.every((function(t){var e=Math.min(o.right,t.right)-Math.max(o.left,t.left);var n=Math.min(o.bottom,t.bottom)-Math.max(o.top,t.top);return e>0&&n>0}));return s&&o.bottom>0&&o.right>0&&o.left<n(t).width()&&o.top<n(t).height()};var r=i.opts.$thumb;var l=r?r.offset():0;var c;if(l&&r[0].ownerDocument===e&&s(r)){c=o.$refs.stage.offset();a={top:l.top-c.top+parseFloat(r.css("border-top-width")||0),left:l.left-c.left+parseFloat(r.css("border-left-width")||0),width:r.width(),height:r.height(),scaleX:1,scaleY:1}}return a},complete:function(){var t=this;var i=t.current;var o={};if(i.isMoved||!i.isLoaded||i.isComplete){return}i.isComplete=true;i.$slide.siblings().trigger("onReset");u(i.$slide);i.$slide.addClass("fancybox-slide--complete");n.each(t.slides,(function(e,i){if(i.pos>=t.currPos-1&&i.pos<=t.currPos+1){o[i.pos]=i}else if(i){n.fancybox.stop(i.$slide);i.$slide.off().remove()}}));t.slides=o;t.updateCursor();t.trigger("afterShow");if(n(e.activeElement).is("[disabled]")||i.opts.autoFocus&&!(i.type=="image"||i.type==="iframe")){t.focus()}},preload:function(){var t=this;var e,n;if(t.group.length<2){return}e=t.slides[t.currPos+1];n=t.slides[t.currPos-1];if(e&&e.type==="image"){t.loadSlide(e)}if(n&&n.type==="image"){t.loadSlide(n)}},focus:function(){var t=this.current;var e;if(this.isClosing){return}if(t&&t.isComplete){e=t.$slide.find("input[autofocus]:enabled:visible:first");if(!e.length){e=t.$slide.find("button,:input,[tabindex],a").filter(":enabled:visible:first")}}e=e&&e.length?e:this.$refs.container;e.focus()},activate:function(){var t=this;n(".fancybox-container").each((function(){var e=n(this).data("FancyBox");if(e&&e.id!==t.id&&!e.isClosing){e.trigger("onDeactivate");e.removeEvents();e.isVisible=false}}));t.isVisible=true;if(t.current||t.isIdle){t.update();t.updateControls()}t.trigger("onActivate");t.addEvents()},close:function(t,e){var i=this;var o=i.current;var a,s;var r,l,d,p;var h=function(){i.cleanUp(t)};if(i.isClosing){return false}i.isClosing=true;if(i.trigger("beforeClose",t)===false){i.isClosing=false;c((function(){i.update()}));return false}i.removeEvents();if(o.timouts){clearTimeout(o.timouts)}r=o.$content;a=o.opts.animationEffect;s=n.isNumeric(e)?e:a?o.opts.animationDuration:0;o.$slide.off(f).removeClass("fancybox-slide--complete fancybox-slide--next fancybox-slide--previous fancybox-animated");o.$slide.siblings().trigger("onReset").remove();if(s){i.$refs.container.removeClass("fancybox-is-open").addClass("fancybox-is-closing")}i.hideLoading(o);i.hideControls();i.updateCursor();if(a==="zoom"&&!(t!==true&&r&&s&&o.type==="image"&&!o.hasError&&(p=i.getThumbPos(o)))){a="fade"}if(a==="zoom"){n.fancybox.stop(r);d=n.fancybox.getTranslate(r);d.width=d.width*d.scaleX;d.height=d.height*d.scaleY;l=o.opts.zoomOpacity;if(l=="auto"){l=Math.abs(o.width/o.height-p.width/p.height)>.1}if(l){p.opacity=0}d.scaleX=d.width/p.width;d.scaleY=d.height/p.height;d.width=p.width;d.height=p.height;n.fancybox.setTranslate(o.$content,d);u(o.$content);n.fancybox.animate(o.$content,p,s,h);return true}if(a&&s){if(t===true){setTimeout(h,s)}else{n.fancybox.animate(o.$slide.removeClass("fancybox-slide--current"),"fancybox-animated fancybox-slide--previous fancybox-fx-"+a,s,h)}}else{h()}return true},cleanUp:function(t){var i=this,o=n("body"),s,r;i.current.$slide.trigger("onReset");i.$refs.container.empty().remove();i.trigger("afterClose",t);if(i.$lastFocus&&!!i.current.opts.backFocus){i.$lastFocus.focus()}i.current=null;s=n.fancybox.getInstance();if(s){s.activate()}else{a.scrollTop(i.scrollTop).scrollLeft(i.scrollLeft);o.removeClass("fancybox-active compensate-for-scrollbar");if(o.hasClass("fancybox-iosfix")){r=parseInt(e.body.style.top,10);o.removeClass("fancybox-iosfix").css("top","").scrollTop(r*-1)}n("#fancybox-style-noscroll").remove()}},trigger:function(t,e){var i=Array.prototype.slice.call(arguments,1),o=this,a=e&&e.opts?e:o.current,r;if(a){i.unshift(a)}else{a=o}i.unshift(o);if(n.isFunction(a.opts[t])){r=a.opts[t].apply(a,i)}if(r===false){return r}if(t==="afterClose"||!o.$refs){s.trigger(t+".fb",i)}else{o.$refs.container.trigger(t+".fb",i)}},updateControls:function(t){var e=this;var n=e.current,i=n.index,o=n.opts.caption,a=e.$refs.container,s=e.$refs.caption;n.$slide.trigger("refresh");e.$caption=o&&o.length?s.html(o):null;if(!e.isHiddenControls&&!e.isIdle){e.showControls()}a.find("[data-fancybox-count]").html(e.group.length);a.find("[data-fancybox-index]").html(i+1);a.find("[data-fancybox-prev]").prop("disabled",!n.opts.loop&&i<=0);a.find("[data-fancybox-next]").prop("disabled",!n.opts.loop&&i>=e.group.length-1);if(n.type==="image"){a.find("[data-fancybox-download]").attr("href",n.opts.image.src||n.src).show()}else{a.find("[data-fancybox-download],[data-fancybox-zoom]").hide()}},hideControls:function(){this.isHiddenControls=true;this.$refs.container.removeClass("fancybox-show-infobar fancybox-show-toolbar fancybox-show-caption fancybox-show-nav")},showControls:function(){var t=this;var e=t.current?t.current.opts:t.opts;var n=t.$refs.container;t.isHiddenControls=false;t.idleSecondsCounter=0;n.toggleClass("fancybox-show-toolbar",!!(e.toolbar&&e.buttons)).toggleClass("fancybox-show-infobar",!!(e.infobar&&t.group.length>1)).toggleClass("fancybox-show-nav",!!(e.arrows&&t.group.length>1)).toggleClass("fancybox-is-modal",!!e.modal);if(t.$caption){n.addClass("fancybox-show-caption ")}else{n.removeClass("fancybox-show-caption")}},toggleControls:function(){if(this.isHiddenControls){this.showControls()}else{this.hideControls()}}});n.fancybox={version:"3.2.5",defaults:o,getInstance:function(t){var e=n('.fancybox-container:not(".fancybox-is-closing"):last').data("FancyBox");var i=Array.prototype.slice.call(arguments,1);if(e instanceof d){if(n.type(t)==="string"){e[t].apply(e,i)}else if(n.type(t)==="function"){t.apply(e,i)}return e}return false},open:function(t,e,n){return new d(t,e,n)},close:function(t){var e=this.getInstance();if(e){e.close();if(t===true){this.close()}}},destroy:function(){this.close(true);s.off("click.fb-start")},isMobile:e.createTouch!==i&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),use3d:function(){var n=e.createElement("div");return t.getComputedStyle&&t.getComputedStyle(n).getPropertyValue("transform")&&!(e.documentMode&&e.documentMode<11)}(),getTranslate:function(t){var e;if(!t||!t.length){return false}e=t.eq(0).css("transform");if(e&&e.indexOf("matrix")!==-1){e=e.split("(")[1];e=e.split(")")[0];e=e.split(",")}else{e=[]}if(e.length){if(e.length>10){e=[e[13],e[12],e[0],e[5]]}else{e=[e[5],e[4],e[0],e[3]]}e=e.map(parseFloat)}else{e=[0,0,1,1];var n=/\.*translate\((.*)px,(.*)px\)/i;var i=n.exec(t.eq(0).attr("style"));if(i){e[0]=parseFloat(i[2]);e[1]=parseFloat(i[1])}}return{top:e[0],left:e[1],scaleX:e[2],scaleY:e[3],opacity:parseFloat(t.css("opacity")),width:t.width(),height:t.height()}},setTranslate:function(t,e){var n="";var o={};if(!t||!e){return}if(e.left!==i||e.top!==i){n=(e.left===i?t.position().left:e.left)+"px, "+(e.top===i?t.position().top:e.top)+"px";if(this.use3d){n="translate3d("+n+", 0px)"}else{n="translate("+n+")"}}if(e.scaleX!==i&&e.scaleY!==i){n=(n.length?n+" ":"")+"scale("+e.scaleX+", "+e.scaleY+")"}if(n.length){o.transform=n}if(e.opacity!==i){o.opacity=e.opacity}if(e.width!==i){o.width=e.width}if(e.height!==i){o.height=e.height}return t.css(o)},animate:function(t,e,o,a,s){if(n.isFunction(o)){a=o;o=null}if(!n.isPlainObject(e)){t.removeAttr("style")}t.on(f,(function(o){if(o&&o.originalEvent&&(!t.is(o.originalEvent.target)||o.originalEvent.propertyName=="z-index")){return}n.fancybox.stop(t);if(n.isPlainObject(e)){if(e.scaleX!==i&&e.scaleY!==i){t.css("transition-duration","");e.width=Math.round(t.width()*e.scaleX);e.height=Math.round(t.height()*e.scaleY);e.scaleX=1;e.scaleY=1;n.fancybox.setTranslate(t,e)}}else if(s!==true){t.removeClass(e)}if(n.isFunction(a)){a(o)}}));if(n.isNumeric(o)){t.css("transition-duration",o+"ms")}if(n.isPlainObject(e)){n.fancybox.setTranslate(t,e)}else{t.addClass(e)}if(e.scaleX&&t.hasClass("fancybox-image-wrap")){t.parent().addClass("fancybox-is-scaling")}t.data("timer",setTimeout((function(){t.trigger("transitionend")}),o+16))},stop:function(t){clearTimeout(t.data("timer"));t.off("transitionend").css("transition-duration","");if(t.hasClass("fancybox-image-wrap")){t.parent().removeClass("fancybox-is-scaling")}}};function p(t){var e=n(t.currentTarget),i=t.data?t.data.options:{},o=e.attr("data-fancybox")||"",a=0,s=[];if(t.isDefaultPrevented()){return}t.preventDefault();if(o){s=i.selector?n(i.selector):t.data?t.data.items:[];s=s.length?s.filter('[data-fancybox="'+o+'"]'):n('[data-fancybox="'+o+'"]');a=s.index(e);if(a<0){a=0}}else{s=[e]}n.fancybox.open(s,i,a)}n.fn.fancybox=function(t){var e;t=t||{};e=t.selector||false;if(e){n("body").off("click.fb-start",e).on("click.fb-start",e,{options:t},p)}else{this.off("click.fb-start").on("click.fb-start",{items:this,options:t},p)}return this};s.on("click.fb-start","[data-fancybox]",p)})(window,document,window.jQuery||jQuery);(function(t){"use strict";var e=function(e,n,i){if(!e){return}i=i||"";if(t.type(i)==="object"){i=t.param(i,true)}t.each(n,(function(t,n){e=e.replace("$"+t,n||"")}));if(i.length){e+=(e.indexOf("?")>0?"&":"?")+i}return e};var n={youtube:{matcher:/(youtube\.com|youtu\.be|youtube\-nocookie\.com)\/(watch\?(.*&)?v=|v\/|u\/|embed\/?)?(videoseries\?list=(.*)|[\w-]{11}|\?listType=(.*)&list=(.*))(.*)/i,params:{autoplay:1,autohide:1,fs:1,rel:0,hd:1,wmode:"transparent",enablejsapi:1,html5:1},paramPlace:8,type:"iframe",url:"//www.youtube.com/embed/$4",thumb:"//img.youtube.com/vi/$4/hqdefault.jpg"},vimeo:{matcher:/^.+vimeo.com\/(.*\/)?([\d]+)(.*)?/,params:{autoplay:1,hd:1,show_title:1,show_byline:1,show_portrait:0,fullscreen:1,api:1},paramPlace:3,type:"iframe",url:"//player.vimeo.com/video/$2"},metacafe:{matcher:/metacafe.com\/watch\/(\d+)\/(.*)?/,type:"iframe",url:"//www.metacafe.com/embed/$1/?ap=1"},dailymotion:{matcher:/dailymotion.com\/video\/(.*)\/?(.*)/,params:{additionalInfos:0,autoStart:1},type:"iframe",url:"//www.dailymotion.com/embed/video/$1"},vine:{matcher:/vine.co\/v\/([a-zA-Z0-9\?\=\-]+)/,type:"iframe",url:"//vine.co/v/$1/embed/simple"},instagram:{matcher:/(instagr\.am|instagram\.com)\/p\/([a-zA-Z0-9_\-]+)\/?/i,type:"image",url:"//$1/p/$2/media/?size=l"},gmap_place:{matcher:/(maps\.)?google\.([a-z]{2,3}(\.[a-z]{2})?)\/(((maps\/(place\/(.*)\/)?\@(.*),(\d+.?\d+?)z))|(\?ll=))(.*)?/i,type:"iframe",url:function(t){return"//maps.google."+t[2]+"/?ll="+(t[9]?t[9]+"&z="+Math.floor(t[10])+(t[12]?t[12].replace(/^\//,"&"):""):t[12])+"&output="+(t[12]&&t[12].indexOf("layer=c")>0?"svembed":"embed")}},gmap_search:{matcher:/(maps\.)?google\.([a-z]{2,3}(\.[a-z]{2})?)\/(maps\/search\/)(.*)/i,type:"iframe",url:function(t){return"//maps.google."+t[2]+"/maps?q="+t[5].replace("query=","q=").replace("api=1","")+"&output=embed"}}};t(document).on("objectNeedsType.fb",(function(i,o,a){var s=a.src||"",r=false,l,c,f,u,d,p,h;l=t.extend(true,{},n,a.opts.media);t.each(l,(function(n,i){f=s.match(i.matcher);if(!f){return}r=i.type;p={};if(i.paramPlace&&f[i.paramPlace]){d=f[i.paramPlace];if(d[0]=="?"){d=d.substring(1)}d=d.split("&");for(var o=0;o<d.length;++o){var l=d[o].split("=",2);if(l.length==2){p[l[0]]=decodeURIComponent(l[1].replace(/\+/g," "))}}}u=t.extend(true,{},i.params,a.opts[n],p);s=t.type(i.url)==="function"?i.url.call(this,f,u,a):e(i.url,f,u);c=t.type(i.thumb)==="function"?i.thumb.call(this,f,u,a):e(i.thumb,f);if(n==="vimeo"){s=s.replace("&%23","#")}return false}));if(r){a.src=s;a.type=r;if(!a.opts.thumb&&!(a.opts.$thumb&&a.opts.$thumb.length)){a.opts.thumb=c}if(r==="iframe"){t.extend(true,a.opts,{iframe:{preload:false,attr:{scrolling:"no"}}});a.contentProvider=h;a.opts.slideClass+=" fancybox-slide--"+(h=="gmap_place"||h=="gmap_search"?"map":"video")}}else if(s){a.type=a.opts.defaultType}}))})(window.jQuery||jQuery);(function(t,e,n){"use strict";var i=function(){return t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.oRequestAnimationFrame||function(e){return t.setTimeout(e,1e3/60)}}();var o=function(){return t.cancelAnimationFrame||t.webkitCancelAnimationFrame||t.mozCancelAnimationFrame||t.oCancelAnimationFrame||function(e){t.clearTimeout(e)}}();var a=function(e){var n=[];e=e.originalEvent||e||t.e;e=e.touches&&e.touches.length?e.touches:e.changedTouches&&e.changedTouches.length?e.changedTouches:[e];for(var i in e){if(e[i].pageX){n.push({x:e[i].pageX,y:e[i].pageY})}else if(e[i].clientX){n.push({x:e[i].clientX,y:e[i].clientY})}}return n};var s=function(t,e,n){if(!e||!t){return 0}if(n==="x"){return t.x-e.x}else if(n==="y"){return t.y-e.y}return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))};var r=function(t){if(t.is('a,area,button,[role="button"],input,label,select,summary,textarea')||n.isFunction(t.get(0).onclick)||t.data("selectable")){return true}for(var e=0,i=t[0].attributes,o=i.length;e<o;e++){if(i[e].nodeName.substr(0,14)==="data-fancybox-"){return true}}return false};var l=function(e){var n=t.getComputedStyle(e)["overflow-y"];var i=t.getComputedStyle(e)["overflow-x"];var o=(n==="scroll"||n==="auto")&&e.scrollHeight>e.clientHeight;var a=(i==="scroll"||i==="auto")&&e.scrollWidth>e.clientWidth;return o||a};var c=function(t){var e=false;while(true){e=l(t.get(0));if(e){break}t=t.parent();if(!t.length||t.hasClass("fancybox-stage")||t.is("body")){break}}return e};var f=function(t){var e=this;e.instance=t;e.$bg=t.$refs.bg;e.$stage=t.$refs.stage;e.$container=t.$refs.container;e.destroy();e.$container.on("touchstart.fb.touch mousedown.fb.touch",n.proxy(e,"ontouchstart"))};f.prototype.destroy=function(){this.$container.off(".fb.touch")};f.prototype.ontouchstart=function(i){var o=this;var l=n(i.target);var f=o.instance;var u=f.current;var d=u.$content;var p=i.type=="touchstart";if(p){o.$container.off("mousedown.fb.touch")}if(!u||o.instance.isAnimating||o.instance.isClosing){i.stopPropagation();i.preventDefault();return}if(i.originalEvent&&i.originalEvent.button==2){return}if(!l.length||r(l)||r(l.parent())){return}if(i.originalEvent.clientX>l[0].clientWidth+l.offset().left){return}o.startPoints=a(i);if(!o.startPoints||o.startPoints.length>1&&f.isSliding){return}o.$target=l;o.$content=d;o.canTap=true;o.opts=u.opts.touch;n(e).off(".fb.touch");n(e).on(p?"touchend.fb.touch touchcancel.fb.touch":"mouseup.fb.touch mouseleave.fb.touch",n.proxy(o,"ontouchend"));n(e).on(p?"touchmove.fb.touch":"mousemove.fb.touch",n.proxy(o,"ontouchmove"));if(!(o.opts||f.canPan())||!(l.is(o.$stage)||o.$stage.find(l).length)){if(l.is("img")){i.preventDefault()}return}i.stopPropagation();if(!(n.fancybox.isMobile&&(c(o.$target)||c(o.$target.parent())))){i.preventDefault()}o.canvasWidth=Math.round(u.$slide[0].clientWidth);o.canvasHeight=Math.round(u.$slide[0].clientHeight);o.startTime=(new Date).getTime();o.distanceX=o.distanceY=o.distance=0;o.isPanning=false;o.isSwiping=false;o.isZooming=false;o.sliderStartPos=o.sliderLastPos||{top:0,left:0};o.contentStartPos=n.fancybox.getTranslate(o.$content);o.contentLastPos=null;if(o.startPoints.length===1&&!o.isZooming){o.canTap=!f.isSliding;if(u.type==="image"&&(o.contentStartPos.width>o.canvasWidth+1||o.contentStartPos.height>o.canvasHeight+1)){n.fancybox.stop(o.$content);o.$content.css("transition-duration","0ms");o.isPanning=true}else{o.isSwiping=true}o.$container.addClass("fancybox-controls--isGrabbing")}if(o.startPoints.length===2&&!f.isAnimating&&!u.hasError&&u.type==="image"&&(u.isLoaded||u.$ghost)){o.isZooming=true;o.isSwiping=false;o.isPanning=false;n.fancybox.stop(o.$content);o.$content.css("transition-duration","0ms");o.centerPointStartX=(o.startPoints[0].x+o.startPoints[1].x)*.5-n(t).scrollLeft();o.centerPointStartY=(o.startPoints[0].y+o.startPoints[1].y)*.5-n(t).scrollTop();o.percentageOfImageAtPinchPointX=(o.centerPointStartX-o.contentStartPos.left)/o.contentStartPos.width;o.percentageOfImageAtPinchPointY=(o.centerPointStartY-o.contentStartPos.top)/o.contentStartPos.height;o.startDistanceBetweenFingers=s(o.startPoints[0],o.startPoints[1])}};f.prototype.ontouchmove=function(t){var e=this;e.newPoints=a(t);if(n.fancybox.isMobile&&(c(e.$target)||c(e.$target.parent()))){t.stopPropagation();e.canTap=false;return}if(!(e.opts||e.instance.canPan())||!e.newPoints||!e.newPoints.length){return}e.distanceX=s(e.newPoints[0],e.startPoints[0],"x");e.distanceY=s(e.newPoints[0],e.startPoints[0],"y");e.distance=s(e.newPoints[0],e.startPoints[0]);if(e.distance>0){if(!(e.$target.is(e.$stage)||e.$stage.find(e.$target).length)){return}t.stopPropagation();t.preventDefault();if(e.isSwiping){e.onSwipe()}else if(e.isPanning){e.onPan()}else if(e.isZooming){e.onZoom()}}};f.prototype.onSwipe=function(){var e=this;var a=e.isSwiping;var s=e.sliderStartPos.left||0;var r;if(a===true){if(Math.abs(e.distance)>10){e.canTap=false;if(e.instance.group.length<2&&e.opts.vertical){e.isSwiping="y"}else if(e.instance.isSliding||e.opts.vertical===false||e.opts.vertical==="auto"&&n(t).width()>800){e.isSwiping="x"}else{r=Math.abs(Math.atan2(e.distanceY,e.distanceX)*180/Math.PI);e.isSwiping=r>45&&r<135?"y":"x"}e.instance.isSliding=e.isSwiping;e.startPoints=e.newPoints;n.each(e.instance.slides,(function(t,i){n.fancybox.stop(i.$slide);i.$slide.css("transition-duration","0ms");i.inTransition=false;if(i.pos===e.instance.current.pos){e.sliderStartPos.left=n.fancybox.getTranslate(i.$slide).left}}));if(e.instance.SlideShow&&e.instance.SlideShow.isActive){e.instance.SlideShow.stop()}}}else{if(a=="x"){if(e.distanceX>0&&(e.instance.group.length<2||e.instance.current.index===0&&!e.instance.current.opts.loop)){s=s+Math.pow(e.distanceX,.8)}else if(e.distanceX<0&&(e.instance.group.length<2||e.instance.current.index===e.instance.group.length-1&&!e.instance.current.opts.loop)){s=s-Math.pow(-e.distanceX,.8)}else{s=s+e.distanceX}}e.sliderLastPos={top:a=="x"?0:e.sliderStartPos.top+e.distanceY,left:s};if(e.requestId){o(e.requestId);e.requestId=null}e.requestId=i((function(){if(e.sliderLastPos){n.each(e.instance.slides,(function(t,i){var o=i.pos-e.instance.currPos;n.fancybox.setTranslate(i.$slide,{top:e.sliderLastPos.top,left:e.sliderLastPos.left+o*e.canvasWidth+o*i.opts.gutter})}));e.$container.addClass("fancybox-is-sliding")}}))}};f.prototype.onPan=function(){var t=this;var e,a,s;t.canTap=false;if(t.contentStartPos.width>t.canvasWidth){e=t.contentStartPos.left+t.distanceX}else{e=t.contentStartPos.left}a=t.contentStartPos.top+t.distanceY;s=t.limitMovement(e,a,t.contentStartPos.width,t.contentStartPos.height);s.scaleX=t.contentStartPos.scaleX;s.scaleY=t.contentStartPos.scaleY;t.contentLastPos=s;if(t.requestId){o(t.requestId);t.requestId=null}t.requestId=i((function(){n.fancybox.setTranslate(t.$content,t.contentLastPos)}))};f.prototype.limitMovement=function(t,e,n,i){var o=this;var a,s,r,l;var c=o.canvasWidth;var f=o.canvasHeight;var u=o.contentStartPos.left;var d=o.contentStartPos.top;var p=o.distanceX;var h=o.distanceY;a=Math.max(0,c*.5-n*.5);s=Math.max(0,f*.5-i*.5);r=Math.min(c-n,c*.5-n*.5);l=Math.min(f-i,f*.5-i*.5);if(n>c){if(p>0&&t>a){t=a-1+Math.pow(-a+u+p,.8)||0}if(p<0&&t<r){t=r+1-Math.pow(r-u-p,.8)||0}}if(i>f){if(h>0&&e>s){e=s-1+Math.pow(-s+d+h,.8)||0}if(h<0&&e<l){e=l+1-Math.pow(l-d-h,.8)||0}}return{top:e,left:t}};f.prototype.limitPosition=function(t,e,n,i){var o=this;var a=o.canvasWidth;var s=o.canvasHeight;if(n>a){t=t>0?0:t;t=t<a-n?a-n:t}else{t=Math.max(0,a/2-n/2)}if(i>s){e=e>0?0:e;e=e<s-i?s-i:e}else{e=Math.max(0,s/2-i/2)}return{top:e,left:t}};f.prototype.onZoom=function(){var e=this;var a=e.contentStartPos.width;var r=e.contentStartPos.height;var l=e.contentStartPos.left;var c=e.contentStartPos.top;var f=s(e.newPoints[0],e.newPoints[1]);var u=f/e.startDistanceBetweenFingers;var d=Math.floor(a*u);var p=Math.floor(r*u);var h=(a-d)*e.percentageOfImageAtPinchPointX;var g=(r-p)*e.percentageOfImageAtPinchPointY;var b=(e.newPoints[0].x+e.newPoints[1].x)/2-n(t).scrollLeft();var v=(e.newPoints[0].y+e.newPoints[1].y)/2-n(t).scrollTop();var m=b-e.centerPointStartX;var y=v-e.centerPointStartY;var x=l+(h+m);var w=c+(g+y);var $={top:w,left:x,scaleX:e.contentStartPos.scaleX*u,scaleY:e.contentStartPos.scaleY*u};e.canTap=false;e.newWidth=d;e.newHeight=p;e.contentLastPos=$;if(e.requestId){o(e.requestId);e.requestId=null}e.requestId=i((function(){n.fancybox.setTranslate(e.$content,e.contentLastPos)}))};f.prototype.ontouchend=function(t){var i=this;var s=Math.max((new Date).getTime()-i.startTime,1);var r=i.isSwiping;var l=i.isPanning;var c=i.isZooming;i.endPoints=a(t);i.$container.removeClass("fancybox-controls--isGrabbing");n(e).off(".fb.touch");if(i.requestId){o(i.requestId);i.requestId=null}i.isSwiping=false;i.isPanning=false;i.isZooming=false;if(i.canTap){return i.onTap(t)}i.speed=366;i.velocityX=i.distanceX/s*.5;i.velocityY=i.distanceY/s*.5;i.speedX=Math.max(i.speed*.5,Math.min(i.speed*1.5,1/Math.abs(i.velocityX)*i.speed));if(l){i.endPanning()}else if(c){i.endZooming()}else{i.endSwiping(r)}return};f.prototype.endSwiping=function(t){var e=this;var i=false;e.instance.isSliding=false;e.sliderLastPos=null;if(t=="y"&&Math.abs(e.distanceY)>50){n.fancybox.animate(e.instance.current.$slide,{top:e.sliderStartPos.top+e.distanceY+e.velocityY*150,opacity:0},150);i=e.instance.close(true,300)}else if(t=="x"&&e.distanceX>50&&e.instance.group.length>1){i=e.instance.previous(e.speedX)}else if(t=="x"&&e.distanceX<-50&&e.instance.group.length>1){i=e.instance.next(e.speedX)}if(i===false&&(t=="x"||t=="y")){e.instance.jumpTo(e.instance.current.index,150)}e.$container.removeClass("fancybox-is-sliding")};f.prototype.endPanning=function(){var t=this;var e,i,o;if(!t.contentLastPos){return}if(t.opts.momentum===false){e=t.contentLastPos.left;i=t.contentLastPos.top}else{e=t.contentLastPos.left+t.velocityX*t.speed;i=t.contentLastPos.top+t.velocityY*t.speed}o=t.limitPosition(e,i,t.contentStartPos.width,t.contentStartPos.height);o.width=t.contentStartPos.width;o.height=t.contentStartPos.height;n.fancybox.animate(t.$content,o,330)};f.prototype.endZooming=function(){var t=this;var e=t.instance.current;var i,o,a,s;var r=t.newWidth;var l=t.newHeight;if(!t.contentLastPos){return}i=t.contentLastPos.left;o=t.contentLastPos.top;s={top:o,left:i,width:r,height:l,scaleX:1,scaleY:1};n.fancybox.setTranslate(t.$content,s);if(r<t.canvasWidth&&l<t.canvasHeight){t.instance.scaleToFit(150)}else if(r>e.width||l>e.height){t.instance.scaleToActual(t.centerPointStartX,t.centerPointStartY,150)}else{a=t.limitPosition(i,o,r,l);n.fancybox.setTranslate(t.content,n.fancybox.getTranslate(t.$content));n.fancybox.animate(t.$content,a,150)}};f.prototype.onTap=function(t){var e=this;var i=n(t.target);var o=e.instance;var s=o.current;var r=t&&a(t)||e.startPoints;var l=r[0]?r[0].x-e.$stage.offset().left:0;var c=r[0]?r[0].y-e.$stage.offset().top:0;var f;var u=function(i){var a=s.opts[i];if(n.isFunction(a)){a=a.apply(o,[s,t])}if(!a){return}switch(a){case"close":o.close(e.startEvent);break;case"toggleControls":o.toggleControls(true);break;case"next":o.next();break;case"nextOrClose":if(o.group.length>1){o.next()}else{o.close(e.startEvent)}break;case"zoom":if(s.type=="image"&&(s.isLoaded||s.$ghost)){if(o.canPan()){o.scaleToFit()}else if(o.isScaledDown()){o.scaleToActual(l,c)}else if(o.group.length<2){o.close(e.startEvent)}}break}};if(t.originalEvent&&t.originalEvent.button==2){return}if(o.isSliding){return}if(l>i[0].clientWidth+i.offset().left){return}if(i.is(".fancybox-bg,.fancybox-inner,.fancybox-outer,.fancybox-container")){f="Outside"}else if(i.is(".fancybox-slide")){f="Slide"}else if(o.current.$content&&o.current.$content.has(t.target).length){f="Content"}else{return}if(e.tapped){clearTimeout(e.tapped);e.tapped=null;if(Math.abs(l-e.tapX)>50||Math.abs(c-e.tapY)>50||o.isSliding){return this}u("dblclick"+f)}else{e.tapX=l;e.tapY=c;if(s.opts["dblclick"+f]&&s.opts["dblclick"+f]!==s.opts["click"+f]){e.tapped=setTimeout((function(){e.tapped=null;u("click"+f)}),300)}else{u("click"+f)}}return this};n(e).on("onActivate.fb",(function(t,e){if(e&&!e.Guestures){e.Guestures=new f(e)}}));n(e).on("beforeClose.fb",(function(t,e){if(e&&e.Guestures){e.Guestures.destroy()}}))})(window,document,window.jQuery||jQuery);(function(t,e){"use strict";e.extend(true,e.fancybox.defaults,{btnTpl:{slideShow:'<button data-fancybox-play class="fancybox-button fancybox-button--play" title="{{PLAY_START}}">'+'<svg viewBox="0 0 40 40">'+'<path d="M13,12 L27,20 L13,27 Z" />'+'<path d="M15,10 v19 M23,10 v19" />'+"</svg>"+"</button>"},slideShow:{autoStart:false,speed:3e3}});var n=function(t){this.instance=t;this.init()};e.extend(n.prototype,{timer:null,isActive:false,$button:null,init:function(){var t=this;t.$button=t.instance.$refs.toolbar.find("[data-fancybox-play]").on("click",(function(){t.toggle()}));if(t.instance.group.length<2||!t.instance.group[t.instance.currIndex].opts.slideShow){t.$button.hide()}},set:function(t){var e=this;if(e.instance&&e.instance.current&&(t===true||e.instance.current.opts.loop||e.instance.currIndex<e.instance.group.length-1)){e.timer=setTimeout((function(){if(e.isActive){e.instance.jumpTo((e.instance.currIndex+1)%e.instance.group.length)}}),e.instance.current.opts.slideShow.speed)}else{e.stop();e.instance.idleSecondsCounter=0;e.instance.showControls()}},clear:function(){var t=this;clearTimeout(t.timer);t.timer=null},start:function(){var t=this;var e=t.instance.current;if(e){t.isActive=true;t.$button.attr("title",e.opts.i18n[e.opts.lang].PLAY_STOP).removeClass("fancybox-button--play").addClass("fancybox-button--pause");t.set(true)}},stop:function(){var t=this;var e=t.instance.current;t.clear();t.$button.attr("title",e.opts.i18n[e.opts.lang].PLAY_START).removeClass("fancybox-button--pause").addClass("fancybox-button--play");t.isActive=false},toggle:function(){var t=this;if(t.isActive){t.stop()}else{t.start()}}});e(t).on({"onInit.fb":function(t,e){if(e&&!e.SlideShow){e.SlideShow=new n(e)}},"beforeShow.fb":function(t,e,n,i){var o=e&&e.SlideShow;if(i){if(o&&n.opts.slideShow.autoStart){o.start()}}else if(o&&o.isActive){o.clear()}},"afterShow.fb":function(t,e,n){var i=e&&e.SlideShow;if(i&&i.isActive){i.set()}},"afterKeydown.fb":function(n,i,o,a,s){var r=i&&i.SlideShow;if(r&&o.opts.slideShow&&(s===80||s===32)&&!e(t.activeElement).is("button,a,input")){a.preventDefault();r.toggle()}},"beforeClose.fb onDeactivate.fb":function(t,e){var n=e&&e.SlideShow;if(n){n.stop()}}});e(t).on("visibilitychange",(function(){var n=e.fancybox.getInstance();var i=n&&n.SlideShow;if(i&&i.isActive){if(t.hidden){i.clear()}else{i.set()}}}))})(document,window.jQuery||jQuery);(function(t,e){"use strict";var n=function(){var e=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]];var n;var i={};var o,a;for(o=0;o<e.length;o++){n=e[o];if(n&&n[1]in t){for(a=0;a<n.length;a++){i[e[0][a]]=n[a]}return i}}return false}();if(!n){if(e&&e.fancybox){e.fancybox.defaults.btnTpl.fullScreen=false}return}var i={request:function(e){e=e||t.documentElement;e[n.requestFullscreen](e.ALLOW_KEYBOARD_INPUT)},exit:function(){t[n.exitFullscreen]()},toggle:function(e){e=e||t.documentElement;if(this.isFullscreen()){this.exit()}else{this.request(e)}},isFullscreen:function(){return Boolean(t[n.fullscreenElement])},enabled:function(){return Boolean(t[n.fullscreenEnabled])}};e.extend(true,e.fancybox.defaults,{btnTpl:{fullScreen:'<button data-fancybox-fullscreen class="fancybox-button fancybox-button--fullscreen" title="{{FULL_SCREEN}}">'+'<svg viewBox="0 0 40 40">'+'<path d="M9,12 h22 v16 h-22 v-16 v16 h22 v-16 Z" />'+"</svg>"+"</button>"},fullScreen:{autoStart:false}});e(t).on({"onInit.fb":function(t,e){var n;if(e&&e.group[e.currIndex].opts.fullScreen){n=e.$refs.container;n.on("click.fb-fullscreen","[data-fancybox-fullscreen]",(function(t){t.stopPropagation();t.preventDefault();i.toggle(n[0])}));if(e.opts.fullScreen&&e.opts.fullScreen.autoStart===true){i.request(n[0])}e.FullScreen=i}else if(e){e.$refs.toolbar.find("[data-fancybox-fullscreen]").hide()}},"afterKeydown.fb":function(t,e,n,i,o){if(e&&e.FullScreen&&o===70){i.preventDefault();e.FullScreen.toggle(e.$refs.container[0])}},"beforeClose.fb":function(t){if(t&&t.FullScreen){i.exit()}}});e(t).on(n.fullscreenchange,(function(){var t=i.isFullscreen(),n=e.fancybox.getInstance();if(n){if(n.current&&n.current.type==="image"&&n.isAnimating){n.current.$content.css("transition","none");n.isAnimating=false;n.update(true,true,0)}n.trigger("onFullscreenChange",t);n.$refs.container.toggleClass("fancybox-is-fullscreen",t)}}))})(document,window.jQuery||jQuery);(function(t,e){"use strict";e.fancybox.defaults=e.extend(true,{btnTpl:{thumbs:'<button data-fancybox-thumbs class="fancybox-button fancybox-button--thumbs" title="{{THUMBS}}">'+'<svg viewBox="0 0 120 120">'+'<path d="M30,30 h14 v14 h-14 Z M50,30 h14 v14 h-14 Z M70,30 h14 v14 h-14 Z M30,50 h14 v14 h-14 Z M50,50 h14 v14 h-14 Z M70,50 h14 v14 h-14 Z M30,70 h14 v14 h-14 Z M50,70 h14 v14 h-14 Z M70,70 h14 v14 h-14 Z" />'+"</svg>"+"</button>"},thumbs:{autoStart:false,hideOnClose:true,parentEl:".fancybox-container",axis:"y"}},e.fancybox.defaults);var n=function(t){this.init(t)};e.extend(n.prototype,{$button:null,$grid:null,$list:null,isVisible:false,isActive:false,init:function(t){var e=this;e.instance=t;t.Thumbs=e;var n=t.group[0],i=t.group[1];e.opts=t.group[t.currIndex].opts.thumbs;e.$button=t.$refs.toolbar.find("[data-fancybox-thumbs]");if(e.opts&&n&&i&&((n.type=="image"||n.opts.thumb||n.opts.$thumb)&&(i.type=="image"||i.opts.thumb||i.opts.$thumb))){e.$button.show().on("click",(function(){e.toggle()}));e.isActive=true}else{e.$button.hide()}},create:function(){var t=this,n=t.instance,i=t.opts.parentEl,o,a;t.$grid=e('<div class="fancybox-thumbs fancybox-thumbs-'+t.opts.axis+'"></div>').appendTo(n.$refs.container.find(i).addBack().filter(i));o="<ul>";e.each(n.group,(function(t,e){a=e.opts.thumb||(e.opts.$thumb?e.opts.$thumb.attr("src"):null);if(!a&&e.type==="image"){a=e.src}if(a&&a.length){o+='<li data-index="'+t+'"  tabindex="0" class="fancybox-thumbs-loading"><img data-src="'+a+'" /></li>'}}));o+="</ul>";t.$list=e(o).appendTo(t.$grid).on("click","li",(function(){n.jumpTo(e(this).data("index"))}));t.$list.find("img").hide().one("load",(function(){var t=e(this).parent().removeClass("fancybox-thumbs-loading"),n=t.outerWidth(),i=t.outerHeight(),o,a,s,r;o=this.naturalWidth||this.width;a=this.naturalHeight||this.height;s=o/n;r=a/i;if(s>=1&&r>=1){if(s>r){o=o/r;a=i}else{o=n;a=a/s}}e(this).css({width:Math.floor(o),height:Math.floor(a),"margin-top":a>i?Math.floor(i*.3-a*.3):Math.floor(i*.5-a*.5),"margin-left":Math.floor(n*.5-o*.5)}).show()})).each((function(){this.src=e(this).data("src")}));if(t.opts.axis==="x"){t.$list.width(parseInt(t.$grid.css("padding-right"))+n.group.length*t.$list.children().eq(0).outerWidth(true)+"px")}},focus:function(t){var e=this,n=e.$list,i,o;if(e.instance.current){i=n.children().removeClass("fancybox-thumbs-active").filter('[data-index="'+e.instance.current.index+'"]').addClass("fancybox-thumbs-active");o=i.position();if(e.opts.axis==="y"&&(o.top<0||o.top>n.height()-i.outerHeight())){n.stop().animate({scrollTop:n.scrollTop()+o.top},t)}else if(e.opts.axis==="x"&&(o.left<n.parent().scrollLeft()||o.left>n.parent().scrollLeft()+(n.parent().width()-i.outerWidth()))){n.parent().stop().animate({scrollLeft:o.left},t)}}},update:function(){this.instance.$refs.container.toggleClass("fancybox-show-thumbs",this.isVisible);if(this.isVisible){if(!this.$grid){this.create()}this.instance.trigger("onThumbsShow");this.focus(0)}else if(this.$grid){this.instance.trigger("onThumbsHide")}this.instance.update()},hide:function(){this.isVisible=false;this.update()},show:function(){this.isVisible=true;this.update()},toggle:function(){this.isVisible=!this.isVisible;this.update()}});e(t).on({"onInit.fb":function(t,e){var i;if(e&&!e.Thumbs){i=new n(e);if(i.isActive&&i.opts.autoStart===true){i.show()}}},"beforeShow.fb":function(t,e,n,i){var o=e&&e.Thumbs;if(o&&o.isVisible){o.focus(i?0:250)}},"afterKeydown.fb":function(t,e,n,i,o){var a=e&&e.Thumbs;if(a&&a.isActive&&o===71){i.preventDefault();a.toggle()}},"beforeClose.fb":function(t,e){var n=e&&e.Thumbs;if(n&&n.isVisible&&n.opts.hideOnClose!==false){n.$grid.hide()}}})})(document,window.jQuery);(function(t,e){"use strict";e.extend(true,e.fancybox.defaults,{btnTpl:{share:'<button data-fancybox-share class="fancybox-button fancybox-button--share" title="{{SHARE}}">'+'<svg viewBox="0 0 40 40">'+'<path d="M6,30 C8,18 19,16 23,16 L23,16 L23,10 L33,20 L23,29 L23,24 C19,24 8,27 6,30 Z">'+"</svg>"+"</button>"},share:{tpl:'<div class="fancybox-share">'+"<h1>{{SHARE}}</h1>"+"<p>"+'<a href="https://www.facebook.com/sharer/sharer.php?u={{src}}" target="_blank" class="fancybox-share_button">'+'<svg version="1.1" viewBox="0 0 32 32" fill="#3b5998"><path d="M27.6 3h-23.2c-.8 0-1.4.6-1.4 1.4v23.1c0 .9.6 1.5 1.4 1.5h12.5v-10.1h-3.4v-3.9h3.4v-2.9c0-3.4 2.1-5.2 5-5.2 1.4 0 2.7.1 3 .2v3.5h-2.1c-1.6 0-1.9.8-1.9 1.9v2.5h3.9l-.5 3.9h-3.4v10.1h6.6c.8 0 1.4-.6 1.4-1.4v-23.2c.1-.8-.5-1.4-1.3-1.4z"></path></svg>'+"<span>Facebook</span>"+"</a>"+'<a href="https://www.pinterest.com/pin/create/button/?url={{src}}&amp;description={{descr}}" target="_blank" class="fancybox-share_button">'+'<svg version="1.1" viewBox="0 0 32 32" fill="#c92228"><path d="M16 3c-7.2 0-13 5.8-13 13 0 5.5 3.4 10.2 8.3 12.1-.1-1-.2-2.6 0-3.7.2-1 1.5-6.5 1.5-6.5s-.4-.8-.4-1.9c0-1.8 1-3.2 2.4-3.2 1.1 0 1.6.8 1.6 1.8 0 1.1-.7 2.8-1.1 4.3-.3 1.3.6 2.3 1.9 2.3 2.3 0 4.1-2.4 4.1-6 0-3.1-2.2-5.3-5.4-5.3-3.7 0-5.9 2.8-5.9 5.6 0 1.1.4 2.3 1 3 .1.1.1.2.1.4-.1.4-.3 1.3-.4 1.5-.1.2-.2.3-.4.2-1.6-.8-2.6-3.1-2.6-5 0-4.1 3-7.9 8.6-7.9 4.5 0 8 3.2 8 7.5 0 4.5-2.8 8.1-6.7 8.1-1.3 0-2.6-.7-3-1.5 0 0-.7 2.5-.8 3.1-.3 1.1-1.1 2.5-1.6 3.4 1.2.4 2.5.6 3.8.6 7.2 0 13-5.8 13-13 0-7.1-5.8-12.9-13-12.9z"></path></svg>'+"<span>Pinterest</span>"+"</a>"+'<a href="https://twitter.com/intent/tweet?url={{src}}&amp;text={{descr}}" target="_blank" class="fancybox-share_button">'+'<svg version="1.1" viewBox="0 0 32 32" fill="#1da1f2"><path d="M30 7.3c-1 .5-2.1.8-3.3.9 1.2-.7 2.1-1.8 2.5-3.2-1.1.7-2.3 1.1-3.6 1.4-1-1.1-2.5-1.8-4.2-1.8-3.2 0-5.7 2.6-5.7 5.7 0 .5.1.9.1 1.3-4.8-.2-9-2.5-11.8-6-.5.9-.8 1.9-.8 3 0 2 1 3.8 2.6 4.8-.9 0-1.8-.3-2.6-.7v.1c0 2.8 2 5.1 4.6 5.6-.5.1-1 .2-1.5.2-.4 0-.7 0-1.1-.1.7 2.3 2.9 3.9 5.4 4-2 1.5-4.4 2.5-7.1 2.5-.5 0-.9 0-1.4-.1 2.5 1.6 5.6 2.6 8.8 2.6 10.6 0 16.3-8.8 16.3-16.3v-.7c1.1-1 2-2 2.8-3.2z"></path></svg>'+"<span>Twitter</span>"+"</a>"+"</p>"+'<p><input type="text" value="{{src_raw}}" onfocus="this.select()" /></p>'+"</div>"}});function n(t){var e={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;","`":"&#x60;","=":"&#x3D;"};return String(t).replace(/[&<>"'`=\/]/g,(function(t){return e[t]}))}e(t).on("click","[data-fancybox-share]",(function(){var t=e.fancybox.getInstance(),i,o;if(t){i=t.current.opts.hash===false?t.current.src:window.location;o=t.current.opts.share.tpl.replace(/\{\{src\}\}/g,encodeURIComponent(i)).replace(/\{\{src_raw\}\}/g,n(i)).replace(/\{\{descr\}\}/g,t.$caption?encodeURIComponent(t.$caption.text()):"");e.fancybox.open({src:t.translate(t,o),type:"html",opts:{animationEffect:"fade",animationDuration:250}})}}))})(document,window.jQuery||jQuery);(function(t,e,n){"use strict";if(!n.escapeSelector){n.escapeSelector=function(t){var e=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;var n=function(t,e){if(e){if(t==="\0"){return"\ufffd"}return t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" "}return"\\"+t};return(t+"").replace(e,n)}}var i=true;var o=null;var a=null;function s(){var t=e.location.hash.substr(1);var n=t.split("-");var i=n.length>1&&/^\+?\d+$/.test(n[n.length-1])?parseInt(n.pop(-1),10)||1:1;var o=n.join("-");if(i<1){i=1}return{hash:t,index:i,gallery:o}}function r(t){var e;if(t.gallery!==""){e=n("[data-fancybox='"+n.escapeSelector(t.gallery)+"']").eq(t.index-1);if(!e.length){e=n("#"+n.escapeSelector(t.gallery)+"")}if(e.length){i=false;e.trigger("click")}}}function l(t){var e;if(!t){return false}e=t.current?t.current.opts:t.opts;return e.hash||(e.$orig?e.$orig.data("fancybox"):"")}n((function(){if(n.fancybox.defaults.hash===false){return}n(t).on({"onInit.fb":function(t,e){var n,i;if(e.group[e.currIndex].opts.hash===false){return}n=s();i=l(e);if(i&&n.gallery&&i==n.gallery){e.currIndex=n.index-1}},"beforeShow.fb":function(n,s,r){var c;if(!r||r.opts.hash===false){return}c=l(s);if(c&&c!==""){if(e.location.hash.indexOf(c)<0){s.opts.origHash=e.location.hash}o=c+(s.group.length>1?"-"+(r.index+1):"");if("replaceState"in e.history){if(a){clearTimeout(a)}a=setTimeout((function(){e.history[i?"pushState":"replaceState"]({},t.title,e.location.pathname+e.location.search+"#"+o);a=null;i=false}),300)}else{e.location.hash=o}}},"beforeClose.fb":function(i,s,r){var c,f;if(a){clearTimeout(a)}if(r.opts.hash===false){return}c=l(s);f=s&&s.opts.origHash?s.opts.origHash:"";if(c&&c!==""){if("replaceState"in history){e.history.replaceState({},t.title,e.location.pathname+e.location.search+f)}else{e.location.hash=f;n(e).scrollTop(s.scrollTop).scrollLeft(s.scrollLeft)}}o=null}});n(e).on("hashchange.fb",(function(){var t=s();if(n.fancybox.getInstance()){if(o&&o!==t.gallery+"-"+t.index&&!(t.index===1&&o==t.gallery)){o=null;n.fancybox.close()}}else if(t.gallery!==""){r(t)}}));setTimeout((function(){r(s())}),50)}))})(document,window,window.jQueryLanding||window.jQuery||jQuery);
//# sourceMappingURL=jquery.fancybox_landing.map.js